package com.ruoyi.framework.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration
@ConfigurationProperties(prefix = "wechat.cp")
public class WxCpProperties {

    private String corpId;
    private List<AppConfig> apps;

    @Data
    public static class AppConfig {
        private Integer agentId;
        private String secret;
        private String token;
        private String aesKey;
        private String archiveSecret;
        private String archiveLibPath;
        private String priKey;

    }

}
